home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 2 / Meeting Pearls Vol. II (1995)(GTI - Schatztruhe)[!].iso / Pearls / dev / GUI / Triton / Programmer / Include / clib / triton_protos.h
C/C++ Source or Header  |  1994-07-14  |  4KB  |  108 lines

  1. #ifndef CLIB_TRITON_PROTOS_H
  2. #define CLIB_TRITON_PROTOS_H
  3.  
  4. /*
  5. **    $VER: triton_protos.h 2.54 (14.7.94)
  6. **    Triton Release 1.1
  7. **
  8. **    triton.library prototypes
  9. **    triton.lib definitions
  10. **
  11. **    (C) Copyright 1993-1994 Stefan Zeiger
  12. **    All Rights Reserved
  13. */
  14.  
  15.  
  16. /* ////////////////////////////////////////////////////////////////////// */
  17. /* /////////////////////////////////////////// Compiler specific stuff // */
  18. /* ////////////////////////////////////////////////////////////////////// */
  19.  
  20. #ifdef _DCC
  21.  
  22. #ifndef EXEC_TYPES_H
  23. #include <exec/types.h>
  24. #endif
  25.  
  26. #define REG(x) __ ## x
  27. #define ASM
  28. #define STACK  __stkargs
  29. #define REGS   __regargs
  30.  
  31. #else
  32.  
  33. #ifdef __GNUC__
  34.  
  35. #define REG(x)
  36. #define ASM
  37. #define STACK
  38. #define REGS
  39.  
  40. #else /* __SASC__ */
  41.  
  42. #define REG(x) register __ ## x
  43. #define ASM    __asm
  44. #define STACK  __stdargs
  45. #define REGS   __regargs
  46.  
  47. #endif /* __GNUC__ */
  48.  
  49. #endif /* _DCC */
  50.  
  51.  
  52. /* ////////////////////////////////////////////////////////////////////// */
  53. /* /////////////////////////////////////////////////////// Main system // */
  54. /* ////////////////////////////////////////////////////////////////////// */
  55.  
  56. ASM extern struct TR_Project *    TR_OpenProject(REG(a1) struct TR_App *app, REG(a0) struct TagItem *);
  57. ASM extern VOID                   TR_CloseProject(REG(a0) struct TR_Project *);
  58.  
  59. ASM extern LONG                   TR_FirstOccurance(REG(d0) UBYTE ch, REG(a0) STRPTR str);
  60. ASM extern LONG                   TR_NumOccurances(REG(d0) UBYTE ch, REG(a0) STRPTR str);
  61. ASM extern STRPTR                 TR_GetErrorString(REG(d0) UWORD num);
  62. ASM extern UWORD                  TR_GetLastError(REG(a1) struct TR_App *app);
  63. ASM extern VOID                   TR_CloseWindowSafely(REG(a0) struct Window *win);
  64.  
  65. ASM extern struct TR_Message *    TR_GetMsg(REG(a1) struct TR_App *app);
  66. ASM extern VOID                   TR_ReplyMsg(REG(a1) struct TR_Message *message);
  67. ASM extern ULONG                  TR_Wait(REG(a1) struct TR_App *app, REG(d0) ULONG otherbits);
  68.  
  69. ASM extern VOID                   TR_SetAttribute(REG(a0) struct TR_Project *, REG(d0) ULONG id, REG(d1) ULONG attribute, REG(d2) ULONG value);
  70. ASM extern ULONG                  TR_GetAttribute(REG(a0) struct TR_Project *, REG(d0) ULONG id, REG(d1) ULONG attribute);
  71.  
  72. ASM extern VOID                   TR_LockProject(REG(a0) struct TR_Project *project);
  73. ASM extern VOID                   TR_UnlockProject(REG(a0) struct TR_Project *project);
  74.  
  75. ASM extern ULONG                  TR_AutoRequest(REG(a1) struct TR_App *app, REG(a0) struct TR_Project *lockproject, REG(a2) struct TagItem *request_trwintags);
  76. ASM extern ULONG                  TR_EasyRequest(REG(a1) struct TR_App *app, REG(a2) STRPTR bodymft, REG(a3) STRPTR gadfmt, REG(a0) struct TagItem *taglist);
  77.  
  78. ASM extern struct TR_App *        TR_CreateApp(REG(a1) struct TagItem *apptags);
  79. ASM extern VOID                   TR_DeleteApp(REG(a1) struct TR_App *app);
  80.  
  81. ASM extern struct Screen *        TR_LockScreen(REG(a0) struct TR_Project *project);
  82. ASM extern VOID                   TR_UnlockScreen(REG(a0) struct Screen *screen);
  83.  
  84.  
  85. /* ////////////////////////////////////////////////////////////////////// */
  86. /* /////////////////////////////////////////////////// Support library // */
  87. /* ////////////////////////////////////////////////////////////////////// */
  88.  
  89. #ifndef TR_NOSUPPORT
  90.  
  91. STACK extern BOOL                 TR_OpenTriton(ULONG version, ULONG taglist,...);
  92. REGS  extern VOID                 TR_CloseTriton(VOID);
  93. STACK extern struct TR_App     *  TR_CreateAppTags(ULONG taglist,...);
  94. STACK extern struct TR_Project *  TR_OpenProjectTags(struct TR_App *app, ULONG taglist,...);
  95. STACK extern ULONG                TR_EasyRequestTags(struct TR_App *app, STRPTR bodymft, STRPTR gadfmt, ULONG taglist,...);
  96. STACK extern ULONG                TR_AutoRequestTags(struct TR_App *app, struct TR_Project *lockproject, ULONG taglist,...);
  97. REGS  extern BOOL                 TRIM_trLogo_Init(VOID);
  98. REGS  extern VOID                 TRIM_trLogo_Free(VOID);
  99.  
  100. #endif // TR_NOSUPPORT
  101.  
  102.  
  103. /* ////////////////////////////////////////////////////////////////////// */
  104. /* /////////////////////////////////////////////////////////// The End // */
  105. /* ////////////////////////////////////////////////////////////////////// */
  106.  
  107. #endif /* CLIB_TRITON_PROTOS_H */
  108.